//
//  Bird.h
//  Birds
//
//  Created by Denveryee on 14-2-10.
//
//

#ifndef __Birds__Bird__
#define __Birds__Bird__

#include "cocos2d.h"
#include "GameLayer.h"
#include "cocos-ext.h"
#include "VisibleRect.h"
#pragma  comment(lib,"libBox2d.lib")
#pragma  comment(lib,"libExtensions.lib")
using namespace extension;
using namespace cocos2d;

USING_NS_CC;

class Bird : public CCObject
{
public:
    bool birdKick;
    bool birdDying;
    int angry;
    int killScore;
    float flySpeed;
    
    cocos2d::extension::CCArmature * flyBird;
    CCActionInterval* jump;
    
    CCActionInterval *feJump;
    
public:
    Bird(void);
	~Bird(void);
    
    // Method 'init' in cocos2d-x returns bool, instead of 'id' in cocos2d-iphone (an object pointer)
    virtual bool init();
    
    // preprocessor macro for "static create()" constructor ( node() deprecated )
    CREATE_FUNC(Bird);

    
    void kickBack();
    void kickFront();
    void getAngry();
    
    void kickCallback();
    void createFlyBird(int score);
    //音效
    void fly();
};

#endif /* defined(__Birds__Bird__) */
